/**
 * 
 */
package net.homelinux.ajay.net.ondisk.view.client;

import com.google.gwt.user.client.ui.MenuBar;
import com.google.gwt.user.client.ui.VerticalPanel;

public class CommandsMenu extends MenuBar{
    
    private static final String COMMANDS = "Actions";
    private VerticalPanel vertical;
    private MenuBar menuBar;
    private final static String html = "<img src='images/gnome-gmenu.png' height='18' width='18' align='middle' alt='"+COMMANDS+"' />"+COMMANDS;

    public CommandsMenu(){
      super();
      this.setStyleName("CommandsMenu");
      menuBar = new MenuBar(true);
      addItem(html, true ,menuBar);
      
//      vertical = new VerticalPanel();
//      this.setWidget(vertical);
      
    }
    
    public void addCommand(NamedCommand cmd){
      menuBar.addItem(cmd.getMenuItem());
      //vertical.add(cmd.getWidget());
      
    }
    
//    public void removeCommand(NamedCommand cmd){
//      vertical.remove(cmd.getWidget());
//    }
    
  }